public class Block
{
	private int values[] = new int[4];

	public Block(int one, int two, int three, int four)
	{
		this.values[0] = one;
		this.values[1] = two;
		this.values[2] = three;
		this.values[3] = four;
	}

	public int getValueAt(int n)
	{
		int index = n % 4;

		if (index == 0)
			index = 4;

		return this.values[index - 1];
	}

	public void setOne(int value)
	{
		this.values[0] = value;
	}

	public void setTwo(int value)
	{
		this.values[1] = value;
	}

	public void setThree(int value)
	{
		this.values[2] = value;
	}

	public void setFour(int value)
	{
		this.values[3] = value;
	}
}
